package com.liuyi.netty.im.commons.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Mr.Fmy
 * @since 2021-12-09
 */
public class ConversationModel {

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Refresh implements Serializable {

        /**
         * 类型
         */
        private Type type;

        /**
         * 通知方
         */
        private String toId;

        /**
         * 数据
         */
        private Object data;

    }

    public enum Type {
        GROUP_LIST_REFRESH,
        FRIENDS_LIST_REFRESH,
        CONVERSATION_LIST_REFRESH
    }
}
